

import Vue from 'vue' 
import router from 'vue-router'

Vue.use(router)


// 网页路由跳转
export default new router ({
  // *匹配所有 /匹配/xx
  routes:[{
    path: '/',
    redirect: '/home',//设置默认指向的路径
    name: '主页'
    },
  {
    path:'/channel',
    name:'channel',
    component:resolve =>require(['@/pages/channel'],resolve)
  },
  {
    path:'/detail',
    name:'detail',
    component:resolve =>require(['@/pages/detail'],resolve)
  },
  {
    path:'/home',
    name:'home',
    component:resolve =>require(['@/pages/home'],resolve)
  },{
    path:'/search',
    name:'search',
    component:resolve =>require(['@/pages/search'],resolve)
  },{
    path:'/play',
    name:'play',
    component:resolve =>require(['@/pages/play'],resolve)
  },{
    path:'/member',
    name:'member',
    component:resolve =>require(['@/pages/member'],resolve)
  }]
})